#region 属性
var _content:Array[String] = []
var _index:int = 0
var _size:int = 0
var _filled:bool = false
#endregion
#region 字段
#endregion
#region 信号
#endregion

#region 基类方法
#endregion
#region 公共方法
func set_maximum_lines(lines:int):
	_size = lines
	_content.resize(_size)
	clear()
func append(value:String):
	_content[_index] = value
	if _index + 1 < _size:
		_index += 1
	else:
		_index = 0
		_filled = true
func join():
	var result = ""
	if _filled:
		for i in range(_index,_size):
			result += _content[i]
	for i in _index:
		result += _content[i]
	return result
func clear():
	_index = 0
	_filled = false
#endregion
#region 私有方法
#endregion
#region 生命周期函数
func _init(size:int = 300) -> void:
	_size = size
	_content.resize(size)
#endregion
